Added version checks
Lookup funtions return array instead of outputting directly