Adding heartgui code