Deleted unused methods in XML client, Logic implemented with transactions (NOT tested yet).