Added method for options - setReturnType.