- Added randomisation to gain matching.