Got this working and added example to readme