Started implementing ATM function