Updated the usage of sfunc