Fixing custom script and default output