Rewrite attempt 9