Made main scheme shared