Removed default value = null from function