Use type for return instead of returning a string

Signed-off-by: Ian Hilt <ihilt@cbccts.org>