JK: Removed static function - not a great idea.

Just implemented requried code in other project.