Added log-statements