Unnecessary functions removed.