Initial code for rqm.