Fixed insert location, renamed value and temp