Move plugins out to separate file