Corrected code for ACT test.