Added some de-referencing and stuffs.

Now it should compile?