Changed accesses to the ip to be auto-incrementing
Implemented add