Moved function call to "pre" clause