Updated version of add