First bitstarter code provided by balajis