Improved security and rspec config