Core program implementation