Added file to default and alternatives mapping functions.
Refactor