Removed some print statements & fixed for derby.