Removing unnecessary functions.