Cleaned up insert code.