A few helper methods