Small script for scalar processing