Integration testing. Added some tracking prints