Move Lookup Code for better cross platform usage