Some speed optimization for FF