Tips and tricks for creating scripts