Edited max and turbo functions