Implementing TALE algorithm