Refined the functionality of stack focuser