Support part of dirty methods.

Hi,

I have implemented a part of dirty methods. Could you consider to merge it?