Added support for 3 keys when managing files