Added a heart beat and fixed the incorrect port outputs.