Removed extra declaration of cleanup()