Removed unexported result type and made it an anonymous struct instead