It looks like this is not a good way to use filereadable.