Consolidating helper methods