Removed print_r and die in code.