Implemented logic threading, updated user state