Added ladder coding