Adding checkbox directive I found on the internet. Prepare to revert to this revision