Small code clean up of PebbleEngine