Move toxwrap code around, separate entry points instead of having a main function.
Update ticker.