Just a quick prototype on how to implement this thing