Slight issues with clipping but this will do for the min