Added functions to update acceleration