Added generic add method for simpler API usage