Some 'improvement' of code organization
Module functions don't send packets anymore. They only deal with the buffer.