Added basic security hook + improved errors