Move write method onto config pointer