Remove unused funcitons.