Added exceptions. Centralized program into core::system.