Added different error types