Added logging in Logic class.