Print functions for debugging added
Open/Close scope added