F0 code updated to what should be the final architecture.