Adding serialization of script. Having issues with save dialog.