Removes unnecessary function