Put private functions into local scope