Cleaned, unnecessary functions and commands deleted