Added 'data' to assign functions.