Adding check whether the bytes are there or not for simulator