Posting the original draft of the code.
Merge branch 'master' of https://github.com/elovegrove/PYRO