Main #Procedure