Moved file copy inside case