Rest extensions

See comment above.