Added lookup() functionality and added metadata getters/setters/checks