Fixed anonymous question, works with GUI too