Utility functionalities converted to coffeescript.