Made ConfigParameters object and used it throughout