adding functions
Merge https://github.com/noalglais/tumbling