Added decode to file