CODE: Revision to gain_level