Mistakenly attached options configuration object to scope. Dettached now.
Added basic duplicate entry checking.
Added try catch
tweaks to error handling