Switched callback for SREM from bool to int.