Insert now works properly.

All functions are now working, and are in use.