Modified custom template