Put the redirect and background commands in the right order so they work.