Fixed returning values.

If successful adding will return 1, if not - 0.