Maybee you write what you want to do, so you becomes more help here, more easy to write a new function. To converting the code, that is to much work.