Added data retrieval functions.
They are not completely functional, yet, but soon they will be.