Add acceleration function