Library of general purpose helper methods