Separated code for building playground.