Added remove, changed apply to accept seq