Heartbeat support

Fixes #44 
Closes #22 

Opened PR for discussion
will this flatten the results aswell? The problem of this one is that it will return a multi-dimensional array.