Added supoort up to 12  inputs