Changed modal parameter size to length