Adding status functionality