Add accessor builder function.