Playing around with the filemode