How can I simplify this simple code? (Again...)