Cleaned up a utility function
Merge pull request #2 from hpence/develop

Cleaned up a utility function