Register listeners automatically