Removed static if's due to compiler bug.