If you want to roll your own this might help
There are some other posts too that I can try and find when I get on a real computer (not my phone).