Simplified and added sanitations.
Using the internal option instead of the one from the other plugin.