Initial working version without file write support