Switching to working state