Removed unnecessary functions.