Added check for negative sign before function call