Update the code for HRM