Some safety checks