Added HashMapping functionality, still some bugs to fix here.