Improve fps translation code.