Only use two functions instead of 4.