Reverted add function due to a major bug