Changed rel outuput to explicitly output length 0 if EOF