Core skeleton code and basic methods