Modified add method