Cleaning up unused functions.