What code moved beyond its cerimonial functions?