Add threading

Signed-off-by: Eli <Eli@raspberry>