Behaviour rather than type assertion for error handling.