Pseudo code for status check