Removed unecessary functions.