Added filename processing functions.