Add dereference function.
Towards working version...