Implemented main functionality of jala.