Refactored attach IPs