masym: Open file as a local object instead of creating a pointer
masym: Remove hardcoded check on fill numbers. Istead one should use a proper list of input fills