Fucking huge code reduction + len() implemented