Fixed adding function