Added helper functions & expose method

To do:
Fix looping.