Adding on_platforms decorator
Added remaining bits for on_platforms