Removed all try-except blocks for sake of efficiency.