Added pre-submit hooks