Check if we have finished current loop