Added building logic.