Moved Non-Public Functions into Main's Scope