Redefined mink context has been implemented with spin function to avoid unwanted wait statements