Refine auth, and add an execution with timeout function