Handle out-of-memory errors
Fix the signature of LSS_Scale