Ok, I am thinking that API is the better solution, it's much less code aswell.