Completed the script to a basic level