Added fileobject and file selection