Added getFilename and table contains function