Changed line to directly assign instead of using function call