Setting up a routine that works.