So what exactly is the problem? The code above is correct and should work fine.