Use memory locations instead of #defines