FAIL! Doesn't work, and I don't know why!
NOT FAIL!!! It was working. I just didn't call some required methods.
 was an idiot. Anyway, the method looks badly designed, so I couldn't find my fault. I have to change it.