Thank you! I'm at the momento not writing a stand-alone addon. I'm using WoWLua to make the 1st draft, that's why I haven't used events and such. The first idea was to create the core, and then start expanding it. Will the test the code you've provided and the post it here. Thanks!