Added optional parameters for map file and log file