Fix #3. Add static in front of function to prevent strict warnings