Layers:Added backward compatibility for previous models