Added support for 4 bits mode using shift register