Add the functionality of check status