Created a fork helper to allow easy multi-threading