Added simple server hooks