changed the lookup call last param
Added a few more functions