Removing unused idx parameter.