Made file selection async compatible.