Added two return types
Merge pull request #3168 from PekkaPLeppanen/patch-1

Added two return types