Create applay_sapplay_lapplay

Short explanation of those three functions