Helper subroutine added