Added ability to change file mask