Adding function before and after config options