Added GPIO mode support, new patterns