Removed inline logic

Moved inline logic to static variable, slight performance increase.