Added now method to set function