Added deposit logic (untested).