Tweak queue parameters
Update to the new Script API
Add some logging of received messages
Fix call to attach()