Cleaning code up a bit by deleting unnecessary functions.