Added insert, get, and helper functions.