Added dsl methods using parameters instead of nested closure for configuration