applied patch from Dan to provide an example usage