Inital version copied from microreactor