Added hr function.