Implemented methods of shortening the script