Make functions for easier testing of parts