Removed unused function since this has been replaced by the one in utils