Define one method to work on every platform