Moved user stuff to its own file. Added an insert routine.