A working version without config file