Breaking main script into multiple scripts