Added method-template for file saving