Implemented SSPA Optimization on the shore side, made a lot of classes common