Added thread and stuff yo