Adapting code to be compatible with Sf 2.4.2