Prepared script for comments logic