Adding status handler