Pass in config paramter

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>