Cleaned up bst.