Add shape locking statements.