Debugged a few things but seems to work with bambed.