First working version with file associations