Make constants static to avoid linking issues.
Don't call functions that are currently causing issues.
Write to debugging log.