Added runtime changeable gamma and capture method.