Cleaned up the code and handle all requests with one function
Logging with multiple modules with each having their own logger, works.