Added listener and Array manipulation.