Add fp and fk functions