Added error throw instead of return -1, but commented out because it failed tests