Draft code for ATM module