Added object getter. Closes #7