Now with selection detection!