Change acceleration function to older version