Removed unnecessary helper methods.