Basic data retrieval implemented.
fixed warning