Adding BStateIdle to the file