Working on before and after save hooks