Tidied up MRM_estimate code