Trying to make the script working