Parser separated from main code