Refactored phone info code