Move more into state. Add layer pos ops.