Added initial code for pagoda.