Added Print statements for debugging