Added mor code