Removed 'puts' debugging statements