Removed unecessary helper function