Made sure no direct script access is allowed
Added performance class and query counter