Can this be done as a plugin?