Started pyramid rewrite