Removed unused functions.