Fixing pure function issue.