Removed extraneous functions from script