Cleanup of script output