Slight optimisation in iplog