Well is the API method better?
I also added your code to my first post.