Removed some unused functions.