Script integration, callback implementation, and fixes