Implemented our own get function

This functions need a lot of work.