Refactor Code. Add Type Checking for Function Return values.