Why don't you use a simple procedure?