Removed debugging messages and checked correctness