Removed deprecated function calls.
Killed try...catch blocks that caught all exceptions