Added file dialogue
Removed deprecated function prototype