Moved f0000 and f0001 to ruby code