Cleans up script