Yet another attempt - using a separate variable