Added file rotation.