Added adjustable gain