Adding FP code