Updated thread and ready variable in Runnable