Added try catches so backend doesn't crash