The code that makes Petaga tick