Started working on voodoo magic function