File contents handler working