Added list manipulation functions