Fixed some errors, implemented SSDT.