Added rules for work with functions