Unecessary functions removed.