Fixed coding warning - function must return a value