Many thanks to Elias Dorneles for their contribution!