fs50
Commented out lock acquire/release.
Added execution permit.
fs50
Fixed session errors and undefined variable warnings.