iOS6 support added