Add helper function for checking status of encoder