Started to implement Kairus' function