Parallelise some things and make an input loop for testing