Added file handling. It's messy but works flawless. Need huge refact in ServerHandler.