Fixed samples and setting GS registers.