Logger functionality added