Finshed bukding logic.