Added logging when creating handler