Finished LS.py