Added missing 'inserts' and tidied up.