Reworked thread and api to be usable for other things than blasts, Change for RE usage later