Some Spaghetti Code, please?