You can also use the built-in constants #BGROT180 and #BGREVV instead of &H2000 and &H8000, which might make your code more readable.