Added hr function