Added static attribute to the function