Added support for lists as input #6