Un-rogopiled the code

Fixed callbacks, tox_do etc