How can I get this to work as a .cfg file