Improved logger function calls and import shared here instead of debug