Added logic for atmostonce, transfer and check balance