Added simple logging
Added settings in a proper way