Major

Added input sequence detection
plus other stuff