Adding wait conditions and priv queue derefing.
Changning internals of processor a bit.
Fixing int_to_str for 0.