Removed commented code. Moved utility function above MIT licensed code.