Added HR analysis button and function