Implement safer inheritance.
Fixed alignment.